#include <stdio.h>
#include <sys/shm.h>
#include <sys/stat.h>
int main ()
{
int segment_id;
char* shared_memory;
struct shmid_ds shmbuffer;
int segment_size;
const int shared_segment_size = 0x6400;
/* TO DO :
Allocate a shared memory segment.
Attach the shared memory segment.
print shared memory attached at address .
Determine the segment’s size and print it .
Write a string to the shared memory segment.
Detach the shared memory segment.
*/
}

